<?php
declare (strict_types=1);

namespace app\common\model;

class Coupon extends Base
{
    protected $name = 'coupon';


    public function getTypeAttr($value)
    {
        switch ($value) {
            case 1:
                return '注册赠送';
            case 2:
                return '购买赠送';
            default:
                return '其他';
        }
    }
}
